<?php get_template_part( 'inc/slide' );?>


<div class="card mt-3 ">
  <div class="card-body">
    <h5 class="card-title">WB-strap</h5>
    <h6 class="card-subtitle mb-2 text-muted">版本1.0.1</h6>
    <p class="card-text">WB-strap是我设计制作的一款WordPress全设备自适应原创主题，前端框架是bootstrap5，它是开源的</p>
    <a href="https://gitee.com/amggg/wb-strap" class="card-link btn btn-primary">github</a>
    <a href="https://www.amggg.cn/wb-strap/" class="card-link btn btn-primary">模板详情</a>
  </div>
</div>



<div class="list-group mt-3">
  <?php
  if (is_home()) {
    $args = array(
      'post_type' => 'post',
      'showposts' => 7,
      'orderby' => 'rand',
      'post__not_in' => get_option('sticky_posts'),
    );
  } else {
    $args = array(
      'post_type' => 'post',
      'showposts' => 7,
      'orderby' => 'DESC',
      'post__not_in' => get_option('sticky_posts'),
    );
  }
  $my_query = new WP_Query($args);

  if ( $my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post();?> 
    <a href="<?php the_permalink()?>" class="list-group-item list-group-item-action d-flex gap-3 py-3" aria-current="true">
      <div class="rounded-circle flex-shrink-0"><?php echo get_avatar( get_the_author_email(), '40' );?></div>
      <div class="d-flex gap-2 w-100 justify-content-between">
        <div>
          <h6 class="mb-0"><?php the_title() ?></h6>
          <p class="mb-0 opacity-75"><?php foreach((get_the_category()) as $category){echo $category->category_description;}?></p>
        </div>
        <small class="opacity-50 text-nowrap">
         <?php the_time("Bing_filter_time")?>
       </small>
     </div>
   </a>
 <?php endwhile;endif;wp_reset_query();?>
</div>

<div class="mt-3">
  <?php echo get_option("static_api_one"); ?>
</div>
<div class="mt-3">
  <?php echo get_option("static_api_two"); ?>
</div>


<img src="<?php bloginfo ('template_url'); ?>/img/20221210165129722.webp" class="img-fluid rounded mx-auto d-block mt-4 mb-4">


